#====================================================================
#
# Makefile	TGA2CRY Program build
#		uses Mark Williams C
#
#====================================================================
#
#====================================================================
#	Paths
#====================================================================

COPY   = cp

#====================================================================
#	Macro & Assembler flags
#====================================================================

#CFLAGS    = -c -DDUMP=3 -I$(HOME)\inc
CFLAGS    = -c -DFUNCTRACE=0 -DVERSION=0 -DSTD=1
CLFLAGS   = -lm

LFLAGS    = -lc -lm

#====================================================================
#	Object code modules
#====================================================================
#
OBJ0 = tga2cry.o rgb2cry.o debug.o

OBJS = $(OBJ0)

SRC0 = 3ds2jag.c rgb2cry.c debug.c
SRCS = $(SRC0)

INC0 = defs.h tga.h
INCS = $(INC0)

BAKS = $(SRCS) $(INCS)

#
#====================================================================
#	TARGETS
#====================================================================
#

tga2cry.prg:	makefile $(OBJS)
	cc -f -o tga2cry.prg $(OBJS) $(CLFLAGS) 
	@echo 

#
#====================================================================
#	Key Dependencies
#====================================================================
#

tga2cry:	tga2cry.o
tga2cry.o: 	tga2cry.c defs.h tga.h
	cc $(CFLAGS) -f tga2cry.c

debug:		debug.o
debug.o:	debug.c defs.h
	cc $(CFLAGS) -f debug.c

rgb2cry:		rgb2cry.o
rgb2cry.o:	rgb2cry.c crytable.c
	cc $(CFLAGS) -f rgb2cry.c

#
#====================================================================
#	BACKUP
#====================================================================
#

#
#====================================================================
#	TESTS
#====================================================================
#

woman:
	.\tga2cry -f CRY -l woman1 -o woman1 -s woman.tga


#====================================================================
#		EOF
#====================================================================

